package com.up.management.domain.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.up.common.annotation.Excel;
import com.up.common.core.domain.BaseEntity;

/**
 * 传承人管理对象 ich_inheritor
 * 
 * @author cloud
 * @date 2025-09-22
 */
public class Inheritor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 传承人ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 项目ID */
    @Excel(name = "项目ID")
    private Long itemId;

    /** 传承人真实姓名 */
    @Excel(name = "传承人真实姓名")
    private String realName;

    /** 传承人简介 */
    @Excel(name = "传承人简介")
    private String biography;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contact;

    /** 佐证材料 */
    @Excel(name = "佐证材料")
    private String proofMaterials;

    /** 入驻时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入驻时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String name;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }

    public void setRealName(String realName) 
    {
        this.realName = realName;
    }

    public String getRealName() 
    {
        return realName;
    }

    public void setBiography(String biography) 
    {
        this.biography = biography;
    }

    public String getBiography() 
    {
        return biography;
    }

    public void setContact(String contact) 
    {
        this.contact = contact;
    }

    public String getContact() 
    {
        return contact;
    }

    public void setProofMaterials(String proofMaterials) 
    {
        this.proofMaterials = proofMaterials;
    }

    public String getProofMaterials() 
    {
        return proofMaterials;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("itemId", getItemId())
            .append("realName", getRealName())
            .append("biography", getBiography())
            .append("contact", getContact())
            .append("proofMaterials", getProofMaterials())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("username", getUsername())
            .append("name", getName())
            .toString();
    }
}
